XSYMBOL eassume speedups
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Feb 2024 17:54:51 +0000 (09:54 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Feb 2024 19:20:33 +0000 (11:20 -0800)
commitd202f1b9e74107c0e51c5d2fdbe094cbe1baaadb
treefc768bce5e9e030563088554d82e7188322b9be7
parent10c6aea4434b1c9ccea30a1f87f301ab2c9bade6
XSYMBOL eassume speedups

* src/lisp.h (XSYMBOL_WITH_POS_SYM, XSYMBOL): Help the compiler by using
eassume instead of eassert for XSYMBOL postconditions likely to be
useful for optimization later.  With gcc 13.2 -O2 x86-64 this improved
speed on my usual “compile all .el files” benchmark by 0.7% and shrank
the text size of Emacs by 0.09%.
src/lisp.h